package com.ysm.smfu.adapter;

import android.widget.ListView;

import com.ysm.smfu.holder.BaseHolder;
import com.ysm.smfu.holder.Location_Holder;
import com.ysm.smfu.utils.ToastUtils;

import java.util.List;

/**
 * Created by Administrator on 2016/9/22.
 */
public class StringListAdapter extends DefaultAdapter<String> {

    public StringListAdapter(List<String> datas, ListView listView) {
        super(datas, listView,null);
    }

    @Override
    protected BaseHolder<String> getHolder() {
        BaseHolder holder = new Location_Holder();
        return holder;
    }

    @Override
    protected void onInnerItemClick(int position) {
        super.onInnerItemClick(position);

        ToastUtils.showToast(datas.get(position));
    }

}
